// 弹窗背景遮罩
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

// 弹窗内容
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

// 关闭按钮
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  
  &:hover {
    color: #333;
  }
}

// 视频信息区域
.video-info {
  text-align: center;
  margin-bottom: 20px;
  
  h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
  }
  
  .price {
    color: #ff4757;
    font-weight: bold;
    font-size: 18px;
    margin: 0;
  }
}

// 余额信息区域
.balance-info {
  text-align: center;
  margin-bottom: 20px;
  
  p {
    margin: 5px 0;
    color: #333;
  }
  
  .insufficient {
    color: #ff4757;
    
    button {
      color: #1890ff;
      background: none;
      border: none;
      cursor: pointer;
      text-decoration: underline;
      margin-left: 5px;
      
      &:hover {
        color: #40a9ff;
      }
    }
  }
}

// 购买按钮
.buy-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  
  &.can-buy {
    background-color: #1890ff;
    color: white;
    
    &:hover {
      background-color: #40a9ff;
    }
    
    &:active {
      background-color: #096dd9;
    }
  }
  
  &.cannot-buy {
    background-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
  }
}
